package com.apes.framework.jpa.spec.model;

import lombok.Data;

/**
 * 功能：查询过滤条件
 *
 * @author xul
 * @create 2018-01-13 16:01
 */
@Data
public class Filter {

    public String field; //字段名
    public Object value;  //操作值
    public String operator; //运算符
    public String type; //字段类型（'string'，'int'，'long'，'double'，'date'，'dateTime', 'array'）

    public Filter(){

    }

    public Filter(String field,Object value,String operator,String type){
        this.field = field;
        this.value = value;
        this.operator = operator;
        this.type = type;
    }

}
